package com.cr.common.constant;

/**
 * @Author su
 * @Date 2021/11/24 19:42
 */
public interface CommonConstant {

    /**
     * 审核状态（0，待审核， 1，审核中 2，通过 3，拒绝）
     */
    public static final String APPROVE_STATUS_0 = "0";
    public static final String APPROVE_STATUS_1 = "1";
    public static final String APPROVE_STATUS_2 = "2";
    public static final String APPROVE_STATUS_3 = "3";

    /**
     * 预约状态（0，待开始 1，进行中 2，已结束，3，取消）
     */
    public static final String RENT_0 = "0";
    public static final String RENT_1 = "1";
    public static final String RENT_2 = "2";
    public static final String RENT_3 = "3";

    /**
     * 是否出租(0，未出租，1，已出租)
     */
    public static final String NOT_REND = "0";
    public static final String REND = "1";


    /**
     * 文件上传类型 本地上传
     */
    public static final String UPLOAD_TYPE = "local";

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    /**
     * 0：一级菜单  1：子菜单
     */
    public static final Integer MENU_TYPE_0 = 0;
    public static final Integer MENU_TYPE_1 = 1;

    /**
     * 1:一级部门 2:子部门
     */
    public static final Integer ORG_TYPE_1 = 1;
    public static final Integer ORG_TYPE_2 = 2;

    /**
     * 是否叶子节点:    1:是   0:不是
     */
    public static final Integer LEAF_TYPE_0 = 0;
    public static final Integer LEAF_TYPE_1 = 1;

    /**
     * 是否用户已被冻结 0正常(解冻) 1冻结
     */
    public static final String USER_UNFREEZE = "0";
    public static final String USER_FREEZE = "1";

    /**
     * 评论人是否为车主 0否 1是
     */
    public static final String COMMENT_NOT_IS_ADMIN = "0";
    public static final String COMMENT_IS_ADMIN = "1";


    /**
     * 角色 （admin:管理员  common:用户 ）
     */
    public static final String ROLE_CODE_ADMIN = "admin";
    public static final String ROLE_CODE_COMMON = "common";


    /**
     * Token缓存时间：3600秒即一小时
     */
    public static final int TOKEN_EXPIRE_TIME = 3600;
    /**
     * 登录用户Token令牌缓存KEY前缀
     */
    public static final String PREFIX_USER_TOKEN = "prefix_user_token_";

    /**
     * 前端token key
     */
    public static final String CLM_TOKEN = "cr_token";


    /**
     * 一天的开始
     */
    public static final String START_DAY = "00:00";

    /**
     * 一天的结束
     */
    public static final String END_DAY = "23:59";
}
